
module.exports = (sequelize, Sequelize) => {
    return sequelize.define("pure_roles", {
        id: {
            type: Sequelize.INTEGER,
            notNull: true,
            primaryKey: true,
            autoIncrement: true
        },
        name: {
            type: Sequelize.STRING(50),
            comment:'角色名称'
        },
        code: {
            type: Sequelize.STRING(100),
            comment: '角色标识',
        },
        status: {
            type: Sequelize.BOOLEAN,
            defaultValue: 1,
            comment: '状态 0:禁用 1:启用',
        },
        remark: {
            type: Sequelize.STRING(250),
            comment: '备注',
        },
    },{
        comment:'角色表', 
    });
};
